using Gateway.Common.Entity;

namespace Gateway.Domain.Entities;

/// <summary>
/// 角色菜单
/// </summary>
public class RoleMenu : EntityBase
{
    /// <summary>
    /// 角色标识
    /// </summary>
    public string RoleId { get; set; }

    /// <summary>
    /// 菜单标识
    /// </summary>
    public string MenuId { get; set; }

    /// <summary>
    /// 角色
    /// </summary>
    public Role Role { get; set; }

    public RoleMenu()
    {
    }

    public RoleMenu(string roleId, string menuId)
    {
        RoleId = roleId;
        MenuId = menuId;
    }

    public void SetDefaultId(string id)
    {
        this.Id= id;
    }
}